﻿using ProjectB.Application.System.Services;

namespace ProjectB.Application
{
    /// <summary>
    /// 系统服务接口
    /// </summary>
    [ApiDescriptionSettings("哈Default")]
    [Route("pd/[controller]")]
    public class SystemAppService : IDynamicApiController
    {
        private readonly IEntityBService entityBService;
        private readonly ISystemService _systemService;
        public SystemAppService(ISystemService systemService, IEntityBService entityBService)
        {
            _systemService = systemService;
            this.entityBService = entityBService;
        }

        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public string GetDescription()
        {
            return _systemService.GetDescription();
        }
        /// <summary>
        /// 获取系统描述
        /// </summary>
        /// <returns></returns>
        public async Task<int> GetXa(string aaa)
        {
            return await entityBService.Insert(aaa);
        }
    }
}